package com.gxwy.yonghuziliao.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import com.gxwy.yonghuziliao.service.YongHuZiLiaoService;

@Controller
@RequestMapping("yonghuziliao")
public class DeleteController {

	@Autowired
	private YongHuZiLiaoService service;
	
	@RequestMapping("/delete/{id}")
	public String delete(@PathVariable("id")Integer id){
		service.deleteYongHuZiLiao(id);
		return "redirect:/yonghuziliao/right";
	}
	
}
